from rest_framework.generics import CreateAPIView
from .models_test import User
from .serializers_test import UserSerializer


# 请求方式 POST 路径 '/user/' 请求参数 username, password, mobile, application/Json
# 相应参数 id username mobile application/Json
class UserCreateApiView(CreateAPIView):
    serializer_class = UserSerializer
    queryset = User